<template>
  <div class="navbar">
    <div class="content center_box bottom_shadow" :style="{backgroundColor:bgc}">
      <div class="left">
        <slot name="left"></slot>
      </div>
      <div class="center">
        <slot name="center"></slot>
      </div>
      <div class="right">
        <slot name="right"></slot>
      </div>
      
    </div>
  </div>
</template>

<script>
export default {
  name: "NavBar",
  props:{
    bgc:{
      type:String,
      default:'red'
    }
  }
};
</script>

<style lang="less" scoped>
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9;
  .content {
    height: 45PX;
    display: flex;
   
    div{
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .center{
      flex: 1;
      padding: 0 10PX;

    }
    .left,.right{
      
      width: 45PX;
      img{
        width: 25PX;
      }
    }
  }
}
</style>